package com.eriko.sistemavendas.utils;

import org.hibernate.Session;

public class Conecta {
public static void main(String[] args) {
	Session sessao = null;
	try {
		sessao = HibernateUtil.getSessionFactory().openSession();
		System.out.println("conectou");
		
	} finally{
		sessao.close();
		System.out.println("Fechou conexão!");
	}
}
}
